package com.ls.controller.label.model;

import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

import javax.validation.constraints.Max;
import javax.validation.constraints.Min;
import javax.validation.constraints.NotNull;
import java.time.LocalTime;


/**
 * @ClassName EditLabelModel
 * @Description APP用户 编辑标签字段
 * @Author pengyu
 * @Date 2024/6/27 17:14
 * @Version 1.0
 **/
@Data
@NoArgsConstructor
@AllArgsConstructor
@Builder
public class EditLabelModel {
    @NotNull(message = "标签ID不能为空")
    private Long labelId;

    /**
     * 标签名称
     */
    @NotNull(message = "标签名称不得为空")
    private String labelName;
    /**
     * 标签类型 0员工标签，1客户标签，2为亲友
     */
    @NotNull(message = "标签类型不得为空")
    @Max(value = 2)
    @Min(value = 0)
    private Integer labelType;
    /**
     * 公司id
     */
    private Long companyId;
}
